package top.songxs.gmall.feign.product.fallback;

import lombok.extern.slf4j.Slf4j;
import top.songxs.gmall.common.result.Result;
import top.songxs.gmall.common.result.ResultCodeEnum;
import top.songxs.gmall.feign.product.CategoryFeignClient;
import top.songxs.gmall.product.view.CategoryView;
import top.songxs.gmall.product.vo.CategoryVo;

import java.util.List;
@Slf4j
public class CategoryFeignFallBack implements CategoryFeignClient {
    @Override
    public Result<List<CategoryVo>> findAllCategoryTree() {
        log.error("CategoryFeignFallBack 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }

    @Override
    public Result<CategoryView> findAllCategory(Long skuId) {
        log.error("findAllCategory 兜底方案执行了");
        return Result.build(null, ResultCodeEnum.SUCCESS);
    }
}
